﻿using System.Linq;
using Core;
using NUnit.Framework;

namespace Tests
{
    [TestFixture]
    public class WordlistTests
    {
        [Test]
        public void Should_find_whole_word_when_queried()
        {
            var wl = new Wordlist("car", "cat");

            Assert.AreEqual(1, wl.StartsWith("cat").ToList().Count);
        }

        [Test]
        public void Should_find_two_words_when_queried()
        {
            var wl = new Wordlist("car", "cat");

            Assert.AreEqual(2, wl.StartsWith("ca").ToList().Count);
        }
    }
}
